﻿using DevExpress.XtraBars.Demos.MDIDemo;
using DevMy.Vou;
using MDIDemo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DevMy
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            DevExpress.UserSkins.BonusSkins.Register();
            DevExpress.Skins.SkinManager.EnableFormSkins();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            const string _Version = "1.10";
            Form_Log form_Log = new Form_Log(_Version);
            if (form_Log.ShowDialog() == DialogResult.OK)
            {
                Form_DownLoad form_DownLoad = new Form_DownLoad();
                if (form_DownLoad.ShowDialog() == DialogResult.OK)
                {
                    //Application.Run(new Form_ChartDemo());
                    //Application.Run(new frmMain(_Version, form_Log.GetSkinName()));
                    Application.Run(new Form_NewMain(_Version, form_Log.GetSkinName()));

                }
                form_DownLoad.Dispose();
            }
            else
            {
                Application.Exit();
            }
            form_Log.Dispose();
        }
    }
}
